/* 
 * File:   Downloader.h
 * Author: Lance
 *
 * Created on September 13, 2012, 10:17 PM
 */

#ifndef DOWNLOADER_H
#define	DOWNLOADER_H

#include "URL.h"
#include <iostream>
#include <string>
#include "HTTPRequest.h"
#include "Socket.h"
#include <sstream>
#include <pthread.h>
#include <vector>
#include <time.h>

using namespace std;


class Downloader {
public:
	Downloader(string url, int numThreads);
	Downloader(const Downloader& orig);
	virtual ~Downloader();
	void startDownload();
private:
	URL fileHost;
	string url;
	int numThreads;
};

#endif	/* DOWNLOADER_H */

